You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > StatRandom Class > StatRandom Methods > StatRandom.RandomLaplace Method
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
StatRandom.RandomLaplace Method

Laplace distribution random generator.

Syntax
C#
Visual Basic
public static void RandomLaplace([In] double m, [In] double b, [In] TDenseMtxVec Results, int Seed);

This routine generates Result.Length pseudo random numbers, using the Laplace distribution with parameters m and b. The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.

Generate 2000 random numbers by using the Laplace distribution with parameters m=4.2, b=2.4.

using Dew.Math; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector r = new Vector(2000,false); StatRandom.RandomLaplace(4.2, 2.4,r, -1); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!